//
//  BSLPush.h
//  Chamleon-template
//
//  Created by YLW on 15/10/19.
//
//

#import <CDVPlugin.h>


@interface CDVPushInfo : NSObject

@property (nonatomic , assign)UIUserNotificationType notificationType;

@property (nonatomic , assign)NSTimeInterval fireTimeInterval;

//@property(nonatomic) NSCalendarUnit repeatInterval; //重复间隔
//@property(nonatomic,copy) NSCalendar *repeatCalendar;//重复间隔

@property(nonatomic,copy) NSString *alertBody;//提示主题
@property(nonatomic) BOOL hasAction;    //锁屏的滑动的按钮是否需要显示
@property(nonatomic,copy) NSString *alertAction;//滑动来解锁的按钮文字
@property(nonatomic,copy) NSString *alertLaunchImage; //启动图片
@property(nonatomic,copy) NSString *alertTitle NS_AVAILABLE_IOS(8_2); //标题

// sound
@property(nonatomic,copy) NSString *soundName;//UILocalNotificationDefaultSoundName
// badge
@property(nonatomic) NSInteger applicationIconBadgeNumber; //图标文字
// user info
@property(nonatomic,copy) NSDictionary *userInfo; //携带参数

@property (nonatomic , assign)BOOL isRegisterNotification;

@end

@interface BSLPush : CDVPlugin

@property (nonatomic , strong)NSString *callbackID;

@property (nonatomic , strong)CDVPushInfo *pushInfo;

- (void)createMessage:(CDVInvokedUrlCommand *)command;

- (void)clear:(CDVInvokedUrlCommand *)command;

- (void)getClientInfo:(CDVInvokedUrlCommand *)command;
- (void)addEventListener:(CDVInvokedUrlCommand *)command;

@end
